package com.itheima.exception;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

//@Controller
////声明为异常处理类
//@ControllerAdvice
public class Exception {

    @ExceptionHandler(NullPointerException.class)
    public void doNullException(){
        System.out.println("doNullException...");
    }
}
